Foreign mappings need to verify if the underlying pages are sharable/shared. If
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Dec 2009 06:27:56 +0000 (06:27 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Dec 2009 06:27:56 +0000 (06:27 +0000)
commitb3c1a3b15c415b994a0ba2e34f7a482d3a1d60de
treefdbae00b6675d7968862deef30a615243f863457
parentcf5e23f6c44689bcf1996cf890b1c61c6fdb89d0
Foreign mappings need to verify if the underlying pages are sharable/shared. If
so, only RO mappings are allowed to go ahead. If an RW mapping to
sharable/shared page is requested, the GFN will be unshared (if there are free
pages for private copies) or an error returned otherwise. Note that all tools
(libxc + backends) which map foreign mappings need to check for error return
values.

Signed-off-by: Grzegorz Milos <Grzegorz.Milos@citrix.com>
xen/arch/x86/mm.c
xen/common/grant_table.c